<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8"/>
<title>Insert title here</title>
</head>
<body>
<h1>用户信息</h1>     
        <table>
             <tr>
             <td>userid</td>
             <td>username</td>
             <td>password</td>
             </tr>
              <tr th:each="yonghu,status:${list}" th:object="${UserB}">
                <td ><a th:href="@{deleteyonghu1(userid=${yonghu.userid})}"><span th:text="${yonghu.userid}">12</span></a></td><!-- 此时是通过get方式传送 --> 
                <td ><a th:href="@{updateName(userid=${yonghu.userid})}"><span th:text="${yonghu.username}">12</span></a></td> <!-- 必须通过id进行传值 --> 
                <td ><span th:text="${yonghu.password}">12</span></td> 
              </tr>
       </table>
</body>
</html>